package com.example.service;

import com.example.common.result.Result;
import com.example.entity.dto.ProcureDto;
import com.example.entity.dto.ProcureDtoDto;
import com.example.entity.dto.PurchaseOrder.PurchaseDetailDto;
import com.example.entity.dto.PurchaseOrder.PurtcListAddDto;
import com.example.entity.vo.PurchaseOrder.PurchaseDetailVo;
import com.example.entity.yifei.Purtc;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.concurrent.CompletableFuture;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-19
 */
public interface PurtcService extends IService<Purtc>  {

    CompletableFuture<Result> add2(PurtcListAddDto purtcListAddDto);

    Result add3(PurchaseDetailDto purchaseDetailDto, Purtc old);

    PurchaseDetailVo purchaseDetail(String TC001, String TC002);

    void delPurtc(String TC001, String TC002);

    Result addOrUpdatePurtd(PurchaseDetailDto purchaseDetailDto);

//    Result updatePurtd(PurchaseDetailDto purchaseDetailDto);

    Result delPurtd(PurchaseDetailDto purchaseDetailDto);

    Boolean tc30IsN(String tc001, String tc002);
}
